<template>
	<view>		
	  <!-- #ifdef MP-WEIXIN -->
	  <navbar  title="支付成功" :isGoBack="true" :isNotice="true"  :btnColors='btnColor' :visible="true" ></navbar>
	  <!-- #endif -->	
	  <view class="main-cur flex flex-direction text-dff " style="line-height: 2.55555556;">
	        <view class="flex justify-center align-center flex-direction mb-20" style="margin-top: -20rpx;">
				  <image src="../../../static/resource/success.png" style="width: 92rpx; height: 92rpx;"></image>
	          	  <text class="mt-5" style="font-size: 28rpx;color: #222222;">支付成功</text>
				  <view class="flex align-center text-center" style="margin-top: -50rpx;">
				  	 <text class="mt-5" style="font-weight: 500;font-size: 40rpx;color: #000000;">￥</text>
					  <text  style="font-weight: bold;font-size: 64rpx;color: #00000">{{parms.money}}</text>
				  </view>
	        </view>			
			<view class="flex justify-between pl-20 pr-20 pt-30 border-b mt-10">
				<text class="text-sm ml-20" style="color:rgba(1, 31, 55, 0.8);font-size: 28rpx;">订单编号</text>	
				<text class="text-sm" style="color: #011F37;font-size: 28rpx;" >{{parms.pay_no}}</text>	
			</view>
			
			<view class="flex justify-between pl-20 pr-20 pt-30 border-b mt-30" >
				<text class="text-sm ml-20" style="color:rgba(1, 31, 55, 0.8);font-size: 28rpx;">支付方式</text>	
				<text class="text-sm" style="color: #011F37;font-size: 28rpx;">微信</text>	
			</view>
			
			<view class="flex justify-between pl-20 pr-20 pt-30 border-b mt-30">
				<text class="text-sm ml-20" style="color:rgba(1, 31, 55, 0.8);font-size: 28rpx;">收款方</text>	
				<text class="text-sm" style="color: #011F37;font-size: 28rpx;" >{{parms.PayeeInfo}}</text>	
			</view>
	  </view>
		<view class="flex flex-direction ml-20 mr-20 mt-30">			
			<view class="submit-btn-right mt-20" @click="handleClickOrder()">完成</view>				    				
		</view>	
	</view>
</template>

<script>
	export default {
		
		data() {
		   	return {
				...getApp().globalData.config,
				orderInfo:{},
				pay_no:'WX794670782766811687376',
				type:1,
				parms:{}
			}			
		},
		onShow() {
			this.order_pay()
				
		},
		onLoad(options) {
			if(options.parms){
				let parms =JSON.parse(options.parms)
				console.log('options.parms',parms)
				this.parms=parms
			}
		},
		onBackPress(e) {
		    this.$routers.router('/pages/order/index','navigateTo') 
		},
		methods:{
			handleClickOrder(){
				 this.$routers.router('/pages/order/index','switchTab')  
			},
			handleClickHome(){
				 this.$routers.router('/pages/home/index','switchTab')  
			},
			order_pay(){
				let obj_data={
					pay_no:this.pay_no,
					type:this.type,
					token:uni.getStorageSync('userInfo').token,
				}
				this.$http.order_info(obj_data).then(res=>{
					  if(res.resCode=='9999'){
						  this.orderInfo=res.data
					  }
					
				})
			}
		}
	}
</script>

<style>
		@import "./index.css";
</style>